<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.




 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');
require_once (JPATH_COMPONENT_ADMINISTRATOR.DS.'classes'.DS.'admin.class.php');

class lrViewAllseasons extends JView
{
	function display($tpl = null)
	{
	global $option;
	
	$document 	= & JFactory::getDocument();
		$c = lrAdmin::config();$document->addStyleSheet($this->baseurl.'/components/com_lr/assets/css/'.$c->css_file);
	
	$model = &$this->getModel();
	$list = &$model->getList();
	for ($i=0; $i <count($list);$i++)
		{
		$row = &$list[$i];

		$row->link = JRoute::_('index.php?option='.$option.'&id='.$row->id.'&view=season');
		}
	$this->assignRef('list', $list);
	
	parent::display($tpl);
	}
}

?>
